home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
X User Tools
/
X User Tools (O'Reilly and Associates)(1994).ISO
/
sun4c
/
archive
/
tcltk.z
/
tcltk
/
man
/
cat3
/
BackgdErr.3
< prev
next >
Wrap
Text File
|
1994-09-20
|
2KB
|
67 lines
Tk_BackgroundError(3) Tk Library Procedures
_________________________________________________________________
NAME
Tk_BackgroundError - report Tcl error that occurred in back-
ground processing
SYNOPSIS
#include <tk.h>
Tk_BackgroundError(_i_n_t_e_r_p)
ARGUMENTS
Tcl_Interp *_i_n_t_e_r_p (in) Interpreter in which the
error occurred.
_________________________________________________________________
DESCRIPTION
This procedure is typically invoked when a Tcl error occurs
during ``background processing'' such as executing a Tcl
command in response to a button press or menu entry invoca-
tion. When such an error occurs, the error condition is
reported to Tk or to a widget or some other C code, and
there is not usually any obvious way for that code to report
the error to the user. In these cases the code calls
Tk_BackgroundError with an _i_n_t_e_r_p argument identifying the
interpreter in which the error occurred. Tk_BackgroundError
attempts to invoke the tkerror Tcl command to report the
error in an application-specific fashion. If no tkerror
command exists, or if it returns with an error condition,
then Tk_BackgroundError reports the error itself by printing
a message on the standard error file.
KEYWORDS
background, error, tkerror
Tk 1